//
//  MaterTableViewCell.m
//  Article
//
//  Created by LONG on 16/5/7.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "MaterTableViewCell.h"

@implementation MaterTableViewCell


-(void)configModel:(MaterModel *)model{
    [self.avatar128 sd_setImageWithURL:[NSURL URLWithString:model.avatar128] placeholderImage:[UIImage imageNamed:@"moren"]];
    
    self.nickname.text = model.nickname;
    self.level.text = [NSString stringWithFormat:@"%@级",model.level];

    if ([model.agents_level isEqualToString:@"3"]) {
        self.vipLab.hidden = NO;
    }else{
        self.vipLab.hidden = YES;
    }
    self.reg_time.text = model.reg_time;
    self.last_login_time.text = model.last_login_time;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
